# build in python3.5.2
# 作者：陈常鸿
# 组合数组
import numpy as np
path_read='F:\强化学习\机器学习\JiQiXueXisample\线性回归/data1.txt'
path_write='E:\pycharm/'
# 读取数据
data=np.loadtxt(path,delimiter=',')

a=np.matrix([[1,2,3],[4,5,6]])
# 保存文件
np.savetxt("E:\pycharm/a.txt",a)
# 读取文件
# data=np.loadtxt(path_read,dtype=np.float32) 报错：ValueError: could not convert string to float: b'6.1101,17.592'
